//
//  AppDelegate.h
//  HuiKaoClient
//
//  Created by 龚 杰 on 13-2-20.
//  Copyright (c) 2013年 龚 杰. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate,MBProgressHUDDelegate>
{
    MBProgressHUD*      _HUD;
    BOOL                _isKeyboardShow;
    NSString*           m_Province_id;
    NSMutableArray*            m_CityDataArr;
}
@property (nonatomic,retain) NSMutableArray*     m_CityDataArr;
@property (nonatomic,retain) NSString*           m_Province_id;
@property (strong, nonatomic) UIWindow *window;

@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;


-(void) hide;
- (void)setShowText:(NSString*)showText;
- (void)setProgressData:(CGFloat)progress;
- (void)showProgress:(NSString*)showText;
- (void)showActivity:(NSString*)showText
          detailText:(NSString*)detailText;

- (void)showWithCustomView:(NSString*)showText
                detailText:(NSString*)detailText
                     isCue:(int)isCue
                 delayTime:(CGFloat)delayTime;
- (void)hideHUD:(BOOL)isCue
       showText:(NSString*)showText;
- (void)hideHUD:(CGFloat)delayTime;
@end
